package com.javase.sy06.Q1;

public class Square implements Shape{

    double length,width, height;

    public Square() {
    }

    public Square(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    @Override
    public double area() {
        double area=length * height * 6;
        return area;
    }

    @Override
    public double volume() {
        double volume = length * height * width;
        return volume;
    }

}
